package com.example.zdxk.service.impl;
import com.example.zdxk.entity.Location;
import com.example.zdxk.mapper.primary.LocationMapper;
import com.example.zdxk.service.LocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LocationServiceImpl implements LocationService {
    @Autowired
    private LocationMapper locationMapper;

    @Override
    public int add(Location location)
    {
        return locationMapper.add(location);
    }
    @Override
    public Location getlocation(String term_imei){

        return  locationMapper.getlocation(term_imei);
    }
    @Override
    public List<Location> getLocationList(String term_imei, int page, int limit){return locationMapper.getLocationList(term_imei,page,limit);}
    @Override
    public List<Location> getLocationcount(String term_imei){return  locationMapper.getLocationcount(term_imei);}


}
